import java.sql.Date;
import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public class ToString {
	public static void main(String[] args) {
		List<HashMap<String, Object>> results = new ArrayList<HashMap<String, Object>>();
		HashMap<String, Object> map = new HashMap<String, Object>();
		map.put("xx", "xx");
		map.put("bb", 1000);
		results.add(map);
		
		HashMap<String, Object> map1 = new HashMap<String, Object>();
		map1.put("xx1", "xx");
		map1.put("bb1", 1000);
		
		results.add(map1);
		System.out.println(results);
		
		
		Integer i3=220;
		Integer i4=220;
		System.out.println(i3==i4);
		Integer i1=120;
		Integer i2=120;
		System.out.println(i1==i2);
		
		Integer i5=new Integer(124);
		Integer i6=new Integer(124);
		System.out.println(i5==i6);
		
		Integer i7=new Integer(200);
		Integer i8=new Integer(200);
		System.out.println(i7==i8);

		
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		try {
			long start=dateFormat.parse("2016-06-12 00:00:00").getTime();
			long end=dateFormat.parse("2016-06-13 15:00:00").getTime();
			System.out.println(start+"---"+end);
			
			long l = 1465799434000l;
			Date d = new Date(l);
			System.out.println(dateFormat.format(d));
			
			
		} catch (ParseException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
}
